package com.link.base.base.questionnairesurvey.service;

import com.link.base.base.questionnairesurvey.model.Answer;
import com.link.base.base.questionnairesurvey.model.Survey;
import com.link.base.base.questionnairesurvey.model.Topic;
import com.link.core.basic.service.BasicService;

import java.util.Map;

/**
 * @author 刘鲁
 * @date 2018-07-04
 * @comments 作答用户答案
 */
public interface AnswerService extends BasicService<Answer> {

    /**
     * 根据标题查答案
     * @param topic
     * @return
     * @throws Exception
     */
    public Map<String,Object> queryAnsByTopicId(Topic topic) throws Exception;

    /**
     * 通过问卷查找结果统计
     * @param survey
     * @return
     * @throws Exception
     */
    public Map<String,Map<String, Object>> queryAnsBySurveyId(Survey survey) throws Exception;
}
